<template>
    <div id="box" style="overflow: hidden;">
        <div class="box-first">
            <div class="myBox">
                <div class="title-bar animate__animated animate__fadeInUp">
                    <div>专利申请数据展示</div>
                    <!-- <div class="textStyle">累计数量</div> -->
                </div>
                <div class="box-content animate__animated animate__fadeInUp"><applyForPatent></applyForPatent></div>
            </div>
            <div class="myBox">
                <div class="title-bar animate__animated animate__fadeInUp">
                    <div>版权登记盟市统计</div>
                    <!-- <div class="textMoreStyle">查看更多</div> -->
                </div>
                <div class="box-content animate__animated animate__fadeInUp"><piBar></piBar></div>
            </div>
            <div class="myBox">
                <div class="title-bar animate__animated animate__fadeInUp">版权登记月度统计</div>
                <div class="box-content animate__animated animate__fadeInUp"><piBarTwo></piBarTwo></div>
            </div>
        </div>
        <div class="box-second">
            <div class="myBoxTwo">
                <div class="title-bar animate__animated animate__fadeInUp">专利情况</div>
                <div class="box-content animate__animated animate__fadeInUp"><piBarThr></piBarThr></div>
            </div>
            <div class="myBoxTwo">
                <div class="title-bar animate__animated animate__fadeInUp">
                    <div>科技型中小企业知识产权拥有量</div>
                    <!-- <div class="textMoreStyle">查看更多</div> -->
                </div>
                <div class="box-content animate__animated animate__fadeInUp">
                    <fundInvestment></fundInvestment>
                    <!-- <div class="table-th-box">
                        <div style="width: 50%;">标题</div>
                        <div style="width: 30%;">类型</div>
                        <div style="width: 20%;">级别</div>
                    </div>
                    <div class="policy-box-b">
                        <div class="demandbox-b-con">
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                        </div>
                    </div> -->
                </div>
            </div>
            <div class="myBoxTwo">
                <div class="title-bar animate__animated animate__fadeInUp">
                    <div>自治区专利授权统计</div>
                    <!-- <div class="textMoreStyle">查看更多</div> -->
                </div>
                <div class="box-content animate__animated animate__fadeInUp" style="padding: 2rem;">
                    <pieCharts :pieData="pieData"></pieCharts>
                    <!-- <div class="table-th-box">
                        <div style="width: 50%;">标题</div>
                        <div style="width: 30%;">类型</div>
                        <div style="width: 20%;">级别</div>
                    </div>
                    <div class="policy-box-b">
                        <div class="demandbox-b-con">
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                        </div>
                    </div> -->
                </div>
            </div>
            <div class="myBoxTwo">
                <div class="title-bar animate__animated animate__fadeInUp">
                    <div>自治区万人发明专利拥有量</div>
                    <!-- <div class="textMoreStyle">查看更多</div> -->
                </div>
                <div class="box-content animate__animated animate__fadeInUp" style="padding: 2rem;">
                    <srLineArea :xData="linexData" :sData="linesData"></srLineArea>
                    <!-- <div class="table-th-box">
                        <div style="width: 50%;">标题</div>
                        <div style="width: 30%;">类型</div>
                        <div style="width: 20%;">级别</div>
                    </div>
                    <div class="policy-box-b">
                        <div class="demandbox-b-con">
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                                <div class="de-li-l">
                                    <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                                </div>
                                <div class="de-li-r">技术创新中心</div>
                                <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                            <div class="demandbox-b-con-li">
                               <div class="de-li-l">
                                   <span>内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务内蒙古知识产权公共服务</span>
                               </div>
                               <div class="de-li-r">技术创新中心</div>
                               <div class="de-li-e">国家级</div>
                            </div>
                        </div>
                    </div> -->
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'
import applyForPatent from './figureComponents/applyForPatent.vue'
import piBar from './figureComponents/piBar.vue'
import piBarTwo from './figureComponents/piBarTwo.vue'
import piBarThr from './figureComponents/piBarThr.vue'
import fundInvestment from './figureComponents/fundInvestment.vue'
import pieCharts from '../childComponent/pieCharts.vue'
import srLineArea from '../childComponent/srLineArea.vue'
import { CountTo } from 'vue3-count-to'

const linexData = ref([2016,2017,2018,2019,2020,2021,2022])
const linesData = ref([39, 60, 64, 117,139,100,120,139])

const pieData = ref([
    {
        name: '2019年',
        value: 11059,
    },
    {
        name: '2020年',
        value: 17958,
    },
    {
        name: '2021年',
        value: 24362,
    },
    {
        name: '2022年',
        value: 24638,
    },
])
</script>
<style scoped lang="scss">
#box {
    .box-first {
        flex: 3;
        display: flex;
        position: relative;
        overflow: hidden;
        .myBox {
            flex: 1;
            border: 1px solid rgba(45, 204, 255, 0.13);
            height: 42vh;
            margin-right: 16px;
            .title-bar {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                height: 45px;
                background: url('@/assets/bigScreen/title-bg.png') no-repeat;
                background-size: 100% 100%;
                font-family: Source Han Sans CN;
                font-size: 1.8rem;
                font-weight: bold;
                color: #ffffff;
                text-shadow: 0px 2.49px 4.67px 0px rgba(0, 80, 203, 0.61);
                padding-left: 47px;
                padding-right: 22px;
                .textStyle {
                    font-family: PingFang SC;
                    font-size: 16px;
                    font-weight: normal;
                    line-height: 26px;
                    color: #02fbfd;
                    text-shadow: 0px 2.49px 4.67px 0px rgba(0, 80, 203, 0.61);
                    text-decoration: underline;
                }
                .textMoreStyle {
                    font-size: 14px;
                    text-decoration: underline;
                    cursor: pointer;
                }
            }
            .box-content {
                height: calc(100% - 4.5rem);
                width: 100%;
            }
        }
    }
    .box-second {
        flex: 4;
        display: flex;
        margin-top: 18px;
        .myBoxTwo {
            flex: 1;
            width: 25%;
            border: 1px solid rgba(45, 204, 255, 0.13);
            height: 40vh;
            margin-right: 16px;
            .box-content {
                height: calc(100% - 4.5rem);
                width: 100%;
                .table-th-box{
                    width: 100%;
                    display: flex;
                    font-size: 1.6rem;
                    font-weight: bold;
                    color: #FFFFFF;
                    height: 4.8rem;
                    line-height: 4.8rem;
                    padding: 0 1rem;
                    div{
                        padding: 0 1rem;
                    }
                }
                .policy-box-b {
                    margin-top: 1rem;
                    height: calc(100% - 8rem);
                    overflow-y: scroll;
                    scrollbar-width: none; /* firefox */
                    -ms-overflow-style: none; /* IE 10+ */
                    .demandbox-b-con {
                        .demandbox-b-con-li {
                            width: 100%;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            padding: 1.5rem 1rem;
                            font-size: 1.3rem;
                            color: rgba(255, 255, 255, 0.5);
                            .de-li-l {
                                display: flex;
                                align-items: center;
                                color: #fff;
                                width: 50%;
                                padding: 0 1rem;
                                div {
                                    width: 0.6rem;
                                    height: 0.6rem;
                                    background: #037AFF;
                                    border-radius: 50%;
                                    margin-right: 0.8rem;
                                }
                                span {
                                    white-space: nowrap;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                }
                            }
                            .de-li-r{
                                width: 30%;
                                padding: 0 1rem;
                            }
                            .de-li-e{
                                width: 20%;
                                padding: 0 1rem;
                            }
                        }
                        .demandbox-b-con-li:nth-child(odd) {
                            background-color: #0A1F44;
                        }
                    }

                }
                .policy-box-b::-webkit-scrollbar {
                    display: none; /* Chrome Safari */
                }
            }
            .title-bar {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                height: 45px;
                line-height: 40px;
                background: url('@/assets/bigScreen/title-bg4.png') no-repeat;
                background-size: 100% 100%;
                // padding: 10px 47px;
                font-family: Source Han Sans CN;
                font-size: 1.8rem;
                font-weight: bold;
                color: #ffffff;
                text-shadow: 0px 2.49px 4.67px 0px rgba(0, 80, 203, 0.61);
                padding-left: 47px;
                padding-right: 15px;
                .textMoreStyle {
                    font-family: Source Han Sans CN;
                    font-size: 12px;
                    font-weight: normal;
                    line-height: 26px;
                    letter-spacing: 0px;
                    color: rgba(255, 255, 255, 0.4);
                    text-shadow: 0px 2.49px 4.67px 0px rgba(0, 80, 203, 0.61);
                    cursor: pointer;
                }
            }
        }
    }
}
</style>
